//package com.dhl.cloud.config;
//
//import javax.servlet.http.HttpSession;
//import javax.websocket.HandshakeResponse;
//import javax.websocket.server.HandshakeRequest;
//import javax.websocket.server.ServerEndpointConfig;
//
//public class GetHttpSessionConfig extends ServerEndpointConfig.Configurator {
//
//    @Override
//    public void modifyHandshake(ServerEndpointConfig sec, HandshakeRequest request, HandshakeResponse response) {
//
//        HttpSession httpSession = (HttpSession) request.getHttpSession();
//        if (httpSession != null)
//        {
//        	// 获取httpsession对象
//
//            sec.getUserProperties().put(HttpSession.class.getName(), httpSession);
//        }
//        
//    }
//}